package com.greensam.pixelengine.event.base;

import java.util.function.Consumer;

/**
 * 平台的消息总线
 *
 * @author Ma Chengrui
 * @since 2025/10/13 17:39
 */
public interface TypeEventBus<T extends TypeEvent> {

    boolean publish(T var1);

    void subscribe(String var1, TypeEventListener<T> var2);

    <E> void subscribeWrapped(String var1, Class<E> var2, Consumer<E> var3);

}
